package com.ryan.spring.annotation.collection;

import java.util.Comparator;

/**
 * Created by kaimin on 31/1/2019.
 * time : 14:59
 */
public class StudentComparor implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o2.getAge()-o1.getAge();
    }
}
